from rest_framework.serializers import ModelSerializer

from apps.users.models import User


# 用户模型类的序列化器

class UserModelSerializer(ModelSerializer):
    class Meta:
        model = User
        # fields = '__all__'
        fields = ['id', 'username', 'mobile', 'email', 'password']
